

#ifndef _COMMON_API_H_
#define _COMMON_API_H_

#include "mzfcdll.h"

#define MZ_DEFAULT_ACP_VALUE		(TEXT("System\\TextCodec"))

MZFC_API RECT MzGetWorkArea();
MZFC_API DWORD GetDefaultAcp();

//////////////////////////////////////////////////////////////////////////
//whether animation mutex exists. if already exist return 0, else create a new animation mutex and return the handle.
MZFC_API HANDLE MzIsAnimationNotExist_Create();

//wait for the animation mutex over (wait overtime is dwWaitMax), and then return the animation mutex(new if not overtime).
MZFC_API HANDLE MzWaitTillAnimationEnd_Create(DWORD dwWaitMax = 2000);

//Release and Close the mutex.
MZFC_API void MzDestroyMutex(HANDLE hMutex);


//MZFC_API void MzUpdateScreen();
//MZFC_API BOOL MzIsAnimationExist();
//MZFC_API void MzWaitTillAnimationEnd();

//////////////////////////////////////////////////////////////////////////

#endif	//_COMMON_API_H_

